<<usegrids>>
<div id="confirmtabs">
<ul>
<<section name="confirmtab" loop="$confirmtypes">>
    <li><a href="#confirmtabs-<<$smarty.section.confirmtab.iteration>>"><<$confirmtypes[confirmtab].title>></a></li>
<</section>>
</ul>
<<section name="tab" loop="$confirmtypes">>
    <div id="confirmtabs-<<$smarty.section.tab.iteration>>">
<<$confirmtypes[tab].content>>
    </div>
<</section>>
</div>

<script>
jQuery("div#confirmtabs").tabs({
    select: function(event, ui) {
        switch (ui.index) {
<<section name="tab" loop="$confirmtypes">>
            case <<$smarty.section.tab.iteration-1>>: {
                if (typeof(window["on<<$confirmtypes[tab].type>>Open"]) == "function") {
                    on<<$confirmtypes[tab].type>>Open();
                }
            }
<</section>>
        }
    }
});
if (typeof(window["on<<$confirmtypes[0].type>>Open"]) == "function") {
    on<<$confirmtypes[0].type>>Open();
}

createGrids();
</script>
